import Request from '../utils/request'

/**
 * 数据预览
 */
export const dataOverview = () => Request({
    url: '/api/app/taskinfo/getCompanyTaskCount',
    method: 'get'
})

/**
 * 获取通知公告
 */
export const notice = () => Request({
    url: '/api/app/policyinfo/getNotice',
    method: 'get'
});

/**
 * 待办任务列表
 */
export const toBeHandledTasks = (data:any) => Request({
    url: '/api/app/taskinfo/task',
    method: 'post',
    data
});

/**
 * 上报代办列表
 */
export const toBeReportedTasks = () => Request({
    url: '/api/app/taskinfo/reportList',
    method: 'get'
});

/**
 * 合规提示列表
 */
export const conformanceHint = () => Request({
    url: '/api/app/taskinfo/ComplianceList',
    method: 'get'
})

/**
 * 任务下发与主动上报统计
 */
export const taskStatistics = (params: object) => Request({
    url: '/api/app/taskinfo/getTaskReportCount',
    method: 'get',
    params: params
})